package com.itheima01;

public class Demo01For循环 {
    public static void main(String[] args) {
        //输出10次  不要碰JohnWick的狗
        //for (int i = 1; i <= 10; i++) {
        //    System.out.println("不要碰JohnWick的狗!!!");
        //}

        //打印1-5之间的数字
        for (int i = 1; i <= 5; i++) {
            System.out.println(i);
        }
        //打印4-1之间的数字
        for (int i = 4; i >= 1; i--) {
            System.out.println(i);
        }
    }
}
